package com.xhh.nphm.web.controller.system;

import com.xhh.nphm.common.core.controller.BaseController;
import com.xhh.nphm.common.core.page.TableDataInfo;
import com.xhh.nphm.system.domain.TworkFormLogEty;
import com.xhh.nphm.system.service.ITworkFormLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/log")
public class TworkFormLogController extends BaseController {
    private String prefix = "system/log";

    @Autowired
    private ITworkFormLogService tworkFormLogService;

    /**
     *  工单日志 列表数据
     * @param
     * @return
     */
    @PostMapping("logListJson")
    public TableDataInfo logListJson(Integer wfId) {
        startPage();
        List<TworkFormLogEty> list = tworkFormLogService.logListJson(wfId);
        return getDataTable(list);
    }
}
